import request from '@/utils/request'
import { AxiosPromise } from 'axios'
import { MenuQuery, MenuVO } from './types'

/**
 * 获取菜单树形列表
 *
 * @param queryParams
 */
export function listMenus(queryParams: MenuQuery): AxiosPromise<MenuVO[]> {
  return request({
    url: '/menus',
    params: queryParams
  })
}
